﻿namespace Bootsy.Tests.Jira
import Bootsy.Jira
import Bootsy.Jira.RPC

class DummyJiraService(IJiraService):
	
	[property(Issues)]
	_issues as (RemoteIssue)
	
	[property(Resolutions)]
	_resolutions as (RemoteResolution)
	
	def SearchIssues(terms as string) as (RemoteIssue):
		pass
		
	def GetProgressReport():
		return _issues
		
	def GetIssue(ticket as string) as RemoteIssue:
		for issue in Issues:
			if ticket == issue.key:
				return issue
				
	def GetTop(count as int) as (RemoteIssue):
		pass
		
	def GetResolutionName(id as string) as string:
		for resolution in Resolutions:
			if id == resolution.id:
				return resolution.name
